@echo off
chcp 65001 >nul
echo ======================================================================
echo                AI VTuber - Full Test Launcher
echo ======================================================================
echo.
echo Info:
echo   - TTS Engine: ChatTTS (Girl Voice - Seed 5201)
echo   - Live2D Model: Hiyori
echo   - Test Mode: Interactive Mode
echo.
echo Starting...
echo.

REM Change to project directory
cd /d "%~dp0"

REM Quick check yaml module
python -c "import yaml" >nul 2>&1
if errorlevel 1 (
    echo Installing all dependencies from requirements.txt...
    pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
    if errorlevel 1 (
        echo.
        echo Failed to install dependencies!
        echo Please manually run: pip install -r requirements.txt
        pause
        exit /b 1
    )
)

REM Run test script
python test_local_enhanced.py

REM If error, wait for user
if errorlevel 1 (
    echo.
    echo Error! Please check the error message.
    echo.
    pause
)
